<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let arr = [10,233,124,32,45,38,8080,998];
    let max = arr[0];
   console.log(arr);
   // console.log('-------------');
    for(let i=0; i<arr.length;i++){
        if(arr[i]>max){
          max=arr[i];
        }
     } 
         console.log(max);
    
  

   /* console.log('----------');
    arr[4] = 101;
    console.log(arr[4]);
    console.log(arr.length);
    console.log('----------');
    arr[1000] = 1001;
    for(let i =0;i<arr.length;i++){
        console.log(arr[i]);
    }
    delete arr[1000];
    console.log(arr);*/


 

</script>
</html>